package com.situ.allaia.dao;

import com.situ.allaia.model.Order;
import com.situ.allaia.model.OrderSearchBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDao {

    int deleteById(Long id);

    int insert(Order record);

    Order findById(Long id);

    List<Order> findByUserId(Integer userId);

    List<Order> findAll(OrderSearchBean osb);

    int update(Order record);

    int patch(Order order);
}
